/*!
\copyright  Copyright (c) 2023 Qualcomm Technologies International, Ltd.\n
            All Rights Reserved.\n
            Qualcomm Technologies International, Ltd. Confidential and Proprietary.
\file
\defgroup   hfp_profile HFP Profile
\ingroup    profiles
\brief      Interface to convert kymera specific hfp codec_mode type to generic hfp_profile types.
*/

#ifndef HFP_PROFILE_CODEC_MODE_PROTECTED_H_
#define HFP_PROFILE_CODEC_MODE_PROTECTED_H_

#include <kymera_adaptation_voice_protected.h>

typedef enum
{
    hfp_sco_codec_none,
    hfp_sco_codec_cvsd,
    hfp_sco_codec_sbc,
    hfp_sco_codec_aptxad,
#ifdef INCLUDE_SWB_LC3
    hfp_sco_codec_lc3,
#endif
} hfp_sco_codec_t;

/*! \brief Extract the sample rate information from the codec mode value
    \param codec_mode The kymera specific hfp codec mode value.
    \return Sample rate in Hz
*/
uint32_t HfpProfile_ConvertKymeraCodecModeToSampleRate(hfp_codec_mode_t codec_mode);

/*! \brief Extract the codec information from the codec mode value
    \param codec_mode The kymera specific hfp codec mode value.
    \return The hfp SCO codec
*/
hfp_sco_codec_t HfpProfile_ConvertKymeraCodecModeToCodec(hfp_codec_mode_t codec_mode);

#endif /* HFP_PROFILE_CODEC_MODE_PROTECTED_H_ */